home *** CD-ROM | disk | FTP | other *** search
- procedure GOTOXY( x, y : integer );
-
- (* Procedure GOTOXY() is a subroutine that allows the movement of
- character cursor to a specified point on the screen with
- origin at the top left corner. Must be INCLUDED during
- compilation. This subroutine is functionally the same
- as GOTOXY found in TURBO-PASCAL for the PC.
- Kevin J. Gingrich 6/6/86
-
-
-
- Input x, y Integer
-
- Output None
- *)
-
-
- VAR
- response : STRING ;
-
- begin { GOTOXY }
-
- (* Initialize the character string *)
- response := '' ;
-
- (* Ensure that we are moving to a bona fide screen location *)
- if y > 25 then y := 25 ;
- if y < 1 then y := 1 ;
- if x > 80 then x := 80 ;
- if x < 1 then x := 1 ;
-
- (* Append the appropriate control characters *)
- response := concat(chr(27),chr(89));
-
- (* Move the cursor *)
- write(response,chr(y+31),chr(x+31));
-
-
- end;{ GOTOXY }
-